package com.h6.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.h6.crm.entity.SysRoleGroup;

@Mapper
public interface SysRoleGroupMapper extends BaseMapper<SysRoleGroup> {

    @Select("select RoleID from SYS_RoleGroup where UserID = #{userId}")
    List<Integer> queryRoleIdsByUserId(@Param("userId") String userId);

}
